package com.example.emqx.service;

import com.example.emqx.entity.ApiResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name ="provider-service")
public interface NacosFeignClient {
    @GetMapping("/publish")
    ApiResponse<String> sendMessage(@RequestParam String topic,
                                    @RequestParam String message);
}
